﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013E1 RID: 5089
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyEventPendingAction : IMessage<TrainPartyEventPendingAction>, IMessage, IEquatable<TrainPartyEventPendingAction>, IDeepCloneable<TrainPartyEventPendingAction>, IBufferMessage
	{
		// Token: 0x1700402D RID: 16429
		// (get) Token: 0x0600E3F0 RID: 58352 RVA: 0x00261650 File Offset: 0x0025F850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyEventPendingAction> Parser
		{
			get
			{
				return TrainPartyEventPendingAction._parser;
			}
		}

		// Token: 0x1700402E RID: 16430
		// (get) Token: 0x0600E3F1 RID: 58353 RVA: 0x00261657 File Offset: 0x0025F857
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyEventPendingActionReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700402F RID: 16431
		// (get) Token: 0x0600E3F2 RID: 58354 RVA: 0x00261669 File Offset: 0x0025F869
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyEventPendingAction.Descriptor;
			}
		}

		// Token: 0x0600E3F3 RID: 58355 RVA: 0x00261670 File Offset: 0x0025F870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEventPendingAction()
		{
		}

		// Token: 0x0600E3F4 RID: 58356 RVA: 0x00261678 File Offset: 0x0025F878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEventPendingAction(TrainPartyEventPendingAction other) : this()
		{
			this.optionId_ = other.optionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E3F5 RID: 58357 RVA: 0x0026169D File Offset: 0x0025F89D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEventPendingAction Clone()
		{
			return new TrainPartyEventPendingAction(this);
		}

		// Token: 0x17004030 RID: 16432
		// (get) Token: 0x0600E3F6 RID: 58358 RVA: 0x002616A5 File Offset: 0x0025F8A5
		// (set) Token: 0x0600E3F7 RID: 58359 RVA: 0x002616AD File Offset: 0x0025F8AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionId
		{
			get
			{
				return this.optionId_;
			}
			set
			{
				this.optionId_ = value;
			}
		}

		// Token: 0x0600E3F8 RID: 58360 RVA: 0x002616B6 File Offset: 0x0025F8B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyEventPendingAction);
		}

		// Token: 0x0600E3F9 RID: 58361 RVA: 0x002616C4 File Offset: 0x0025F8C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyEventPendingAction other)
		{
			return other != null && (other == this || (this.OptionId == other.OptionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E3FA RID: 58362 RVA: 0x002616F4 File Offset: 0x0025F8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.OptionId != 0U)
			{
				num ^= this.OptionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E3FB RID: 58363 RVA: 0x00261733 File Offset: 0x0025F933
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E3FC RID: 58364 RVA: 0x0026173B File Offset: 0x0025F93B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E3FD RID: 58365 RVA: 0x00261744 File Offset: 0x0025F944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.OptionId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.OptionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E3FE RID: 58366 RVA: 0x00261778 File Offset: 0x0025F978
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.OptionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E3FF RID: 58367 RVA: 0x002617B6 File Offset: 0x0025F9B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyEventPendingAction other)
		{
			if (other == null)
			{
				return;
			}
			if (other.OptionId != 0U)
			{
				this.OptionId = other.OptionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E400 RID: 58368 RVA: 0x002617E7 File Offset: 0x0025F9E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E401 RID: 58369 RVA: 0x002617F0 File Offset: 0x0025F9F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.OptionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005A2C RID: 23084
		private static readonly MessageParser<TrainPartyEventPendingAction> _parser = new MessageParser<TrainPartyEventPendingAction>(() => new TrainPartyEventPendingAction());

		// Token: 0x04005A2D RID: 23085
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A2E RID: 23086
		public const int OptionIdFieldNumber = 6;

		// Token: 0x04005A2F RID: 23087
		private uint optionId_;
	}
}
